/**
 * Created with IntelliJ IDEA.
 * User: 花海
 * Date: 2022-07-29
 * Time: 9:38
 */
public class judge_year {
    public static boolean judge(int year){
       if(year%4==0&&year%100!=0||year%400==0){
           return true;
       }else{
           return false;
       }
    }

    public static void main(String[] args) {
        for (int i = 1000; i <2000; i++) {
          if(judge(i)){
              System.out.println(i+"is a leap year");
          }
        }
    }


}
